<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>记账本</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    </head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">欢迎使用记账本</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>

        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;" th:text="${session.name}">
                    个人中心
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="setting.html" target="iframeMain">设置</a></dd>
                    <dd><a href="/logout">登出</a></dd>
                </dl>
            </li>

        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item"><a href="info.html" target="iframeMain">消费情况</a></li>
                <li class="layui-nav-item"><a href="add.html" target="iframeMain">记账</a></li>
                <li class="layui-nav-item"><a href="list.html" target="iframeMain">消费记录</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body" style="padding: 15px">
        <!-- 内容主体区域 -->
        <iframe name="iframeMain" src="info.html" width="100%" height="100%" frameborder=0></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        消费
    </div>
</div>
<script src="layui/layui.js"></script>
<script>
    //JS
    layui.use(['element', 'layer', 'util'], function(){
        var element = layui.element
            ,layer = layui.layer
            ,util = layui.util
            ,$ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function(othis){
                layer.msg('展开左侧菜单的操作', {icon: 0});
            }
        });
    });
</script>
<script>

</script>
</body>
</html>